package mapeditor.mappanel;

import java.awt.Point;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

public class MapMouseListener implements MouseListener {
	private DrawingArea da;

	public MapMouseListener(DrawingArea da) {
		this.da = da;
	}

	@Override
	public void mouseClicked(MouseEvent arg0) {
		da.repaint();
	}

	@Override
	public void mouseEntered(MouseEvent arg0) {
		da.repaint();
	}

	@Override
	public void mouseExited(MouseEvent arg0) {
		da.clickAt(null);
		da.repaint();
	}

	@Override
	public void mousePressed(MouseEvent arg0) {
	}

	@Override
	public void mouseReleased(MouseEvent arg0) {
	}

}
